package com.cyj.dream.visual.monitor;

import cn.hutool.core.date.DateUtil;
import com.cyj.dream.visual.monitor.common.CommonConstants;
import de.codecentric.boot.admin.server.config.EnableAdminServer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @Description: 监控中心模块启动类
 * @BelongsProject: DreamChardonnay
 * @BelongsPackage: com.cyj.dream.visual.monitor
 * @Author: ChenYongJia
 * @CreateTime: 2021-09-29 10:31
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
@Slf4j
@EnableAdminServer
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = {CommonConstants.SCAN_BASE_PACKAGES})
public class DreamMonitorApplication {

    /**
     * 项目启动方法
     *
     * @param args the input arguments
     * @date 2021-9-15
     * @author Sunny Chen
     */
    public static void main(String[] args) {
        log.info("梦享云--监控中心模块项目开始启动ing！======>{}", DateUtil.now());
        SpringApplication.run(DreamMonitorApplication.class, args);
        log.info("梦享云--监控中心模块项目启动成功ing.......！======>{}", DateUtil.now());
    }

}
